package com.job.sun;

import sun.applet.Main;

import java.io.IOException;

/**
 * @author 张春阳
 * @version 1.0
 * @since 2022-07-14 21:51:14
 */
public class UseRuntime {                     //异常
    public static void main(String[] args) throws IOException {
        Runtime runtime = Runtime.getRuntime();
        System.out.println(runtime.availableProcessors());
        System.out.println(runtime.freeMemory());
        System.out.println(runtime.totalMemory());
        System.out.println(runtime.maxMemory());
        runtime.exec("mspaint");
        runtime.exec("cale");
        runtime.exec("mstsc");
    }
}